package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class SearchedCase implements CaseSpecification {

    private int beginIndex;
    private int endIndex;
    private List<SearchedWhenClause> searchedWhenClauseList;
    private ElseClause elseClause;

    public SearchedCase(int beginIndex,
                        int endIndex,
                        List<SearchedWhenClause> searchedWhenClauseList,
                        ElseClause elseClause) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.searchedWhenClauseList = searchedWhenClauseList;
        this.elseClause = elseClause;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public List<SearchedWhenClause> getSearchedWhenClauseList() {
        return searchedWhenClauseList;
    }

    public ElseClause getElseClause() {
        return elseClause;
    }

}
